home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / Forms / BFCutsceneForm.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  1.1 KB  |  43 lines

  1. package Forms
  2. {
  3.    import caurina.transitions.Tweener;
  4.    import flash.display.Bitmap;
  5.    import flash.display.MovieClip;
  6.    
  7.    [Embed(source="/_assets/assets.swf", symbol="Forms.BFCutsceneForm")]
  8.    public class BFCutsceneForm extends CluelessBaseForm
  9.    {
  10.        
  11.       
  12.       public var _tBfImages:MovieClip;
  13.       
  14.       public var _mcBackground:MovieClip;
  15.       
  16.       public var _mcModel:Model;
  17.       
  18.       public function BFCutsceneForm()
  19.       {
  20.          super();
  21.       }
  22.       
  23.       public function init(param1:DressupModel) : *
  24.       {
  25.          _mcModel.clone(param1);
  26.          _mcModel.setPose("4");
  27.          _tBfImages.gotoAndStop(param1.PartnerName + "_2");
  28.          _mcBackground.addChild(new Bitmap(MainDocument.BackgroundPackage.getImage(param1.ModelTheme.Background)));
  29.          Tweener.addTween(_tBfImages,{
  30.             "scaleX":1.2,
  31.             "scaleY":1.2,
  32.             "time":1,
  33.             "onComplete":onComplete
  34.          });
  35.       }
  36.       
  37.       protected function onComplete() : void
  38.       {
  39.          setBackButton(this);
  40.       }
  41.    }
  42. }
  43.